package com.lambkit.module.upms.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

public class UpmsUsernamePasswordToken extends UsernamePasswordToken {

    /**
     *
     */
    private static final long serialVersionUID = 7966938590577585731L;

    //0-account-password, 1-phone-verifyCode, 99-unpassword无密认证
    private int loginType = 0;
    private String passwordCodeType = null;

    public UpmsUsernamePasswordToken(String username, String password){
        super(username, password);
        this.passwordCodeType = passwordCodeType;
    }

    public UpmsUsernamePasswordToken(String username, String password, String passwordCodeType){
        super(username, password);
        this.passwordCodeType = passwordCodeType;
    }

    public UpmsUsernamePasswordToken(String username, String password, int loginType){
        super(username, password);
        this.loginType = loginType;
    }

    public UpmsUsernamePasswordToken(String username, String password, int loginType, String passwordCodeType){
        super(username, password);
        this.loginType = loginType;
        this.passwordCodeType = passwordCodeType;
    }

    public int getLoginType() {
        return loginType;
    }

    public void setLoginType(int loginType) {
        this.loginType = loginType;
    }

    public String getPasswordCodeType() {
        return passwordCodeType;
    }

    public void setPasswordCodeType(String passwordCodeType) {
        this.passwordCodeType = passwordCodeType;
    }
}
